<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title></title>

		<script language="JavaScript" type='text/javascript' src='/dwrstudy/dwr/engine.js'></script>
		<script language="JavaScript" type='text/javascript' src='/dwrstudy/dwr/util.js'></script>
		<script language="JavaScript" type='text/javascript' src='/dwrstudy/dwr/interface/ActiveReverseAjax.js'></script>

		<script type="text/javascript">
			dwr.engine.setActiveReverseAjax(true);
			function showMessage(msg) {
				var ele = document.getElementById("messages");
				ele.value = ele.value + msg + "\n";
			}
			function register() {
				ActiveReverseAjax.register(function(data) {});
			}
		</script>
	</head>

	<body>
		<br/>
		Current Session Id: <%=session.getId()%>
		<br/>
		<input type="button" value="Register" onclick="register()"/>
		<br/>
		<textarea id="messages" cols="100" rows="10"></textarea>
		<br/>
		<input type="button" value="Clear" onclick="document.getElementById('messages').value=''"/>
	</body>
</html>

